package com.chinairi.mall.controller;


import com.chinairi.common.utils.ResponseUtil;
import com.chinairi.mall.service.IContractServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.chinairi.common.controller.BaseController;

import java.io.IOException;

/**
 * <p>
 * 合同_服务表 前端控制器
 * </p>
 *
 * @author Webgasd
 * @since 2020-09-03
 */
@RestController
@RequestMapping("/contract-service")
public class ContractServiceController extends BaseController {
    @Autowired
    private IContractServiceService iContractServiceService;

    @GetMapping("/getByContDbId")
    @ResponseBody
    public void getByContDbId(String contDbId) throws IOException {
        ResponseUtil.showMessage("success", "合同内容获取成功", iContractServiceService.getByContDbId(contDbId));
    }
}
